﻿<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />

    <meta name="keywords" content="netnr,NET牛人,proxy,cors,HTTPS跨域代理" />
    <meta name="description" content="netnr,NET牛人,proxy,cors,HTTPS跨域代理" />

    <title>proxy</title>

    <link href="https://code.bdstatic.com/npm/netnrmd@2.2.3/src/netnrmd.css" rel="stylesheet" />
    <link href="https://code.bdstatic.com/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
    <div class="container">
        <div class="row">
            <div class="col-md-12 my-4 markdown-body">
                <h1>proxy</h1>
                <blockquote>
                    <p>HTTP请求代理，CORS跨域请求，HTTPS支持</p>
                </blockquote>
                <h3>作用</h3>
                <ul>
                    <li>支持跨域请求（转换不支持跨域请求的接口），可直接发起 ajax、fetch</li>
                    <li>支持HTTPS（解决远程数据接口不支持HTTPS）</li>
                </ul>
                <h3>接口</h3>
                <ul>
                    <li><a href="https://netnr-proxy.cloudno.de/%7BURL%7D">https://netnr-proxy.cloudno.de/{URL}</a></li>
                </ul>
                <h3>使用</h3>
                <ul>
                    <li><a href="https://netnr-proxy.cloudno.de/https://api.github.com">https://netnr-proxy.cloudno.de/https://api.github.com</a></li>
                    <li><a href="https://netnr-proxy.cloudno.de/http://nginx.org/download/nginx-1.16.1.tar.gz">https://netnr-proxy.cloudno.de/http://nginx.org/download/nginx-1.16.1.tar.gz</a></li>
                </ul>
                <blockquote>
                    <p>拷贝到控制台运行</p>
                </blockquote>
<pre><code class="language-js"><span class="hljs-keyword">var</span> $url = <span class="hljs-string">"http://wthrcdn.etouch.cn/weather_mini?citykey=101040100"</span>;
fetch(<span class="hljs-string">"https://netnr-proxy.cloudno.de/"</span> + $url).then(<span class="hljs-function"><span class="hljs-params">x</span> =&gt;</span> x.text()).then(<span class="hljs-built_in">console</span>.log)</code></pre>
                <h3>安装</h3>
                <ul>
                    <li><code>npm install</code></li>
                    <li><code>node server</code></li>
                </ul>
                <h3>Fork</h3>
                <ul>
                    <li><a href="https://github.com/Rob--W/cors-anywhere/">https://github.com/Rob--W/cors-anywhere/</a></li>
                </ul>
                <h3>Source</h3>
                <ul>
                    <li><a href="https://github.com/netnr/proxy">https://github.com/netnr/proxy</a></li>
                    <li><a href="https://gitee.com/netnr/proxy">https://gitee.com/netnr/proxy</a></li>
                </ul>
            </div>
        </div>
    </div>
</body>
</html>